package com.tool;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.edu.hfut.dmic.webcollector.util.JDBCHelper;

/**
 * *********************************************
 * @author Administrator
 * @FileName LogDataBaseTool.java
 * @Description操作数据库（爬虫日志数据库）
 **********************************************
 */
public class LogDataBaseTool {
	public static final Logger LOG = LoggerFactory.getLogger(LogDataBaseTool.class);
	
	public static void update(String templateName,String sql,Object ... params){
		LOG.info("sql->" + sql);
		JDBCHelper.getJdbcTemplate(templateName).update(sql,params);
	}

}
